<div style="background-color: #BACCD1; height: 25px">
    <div style="margin: 5px; float: left; font-weight: bold">Cartão</div>
    <div id="Card_Status" style="width: 120px; margin: 2px; float: right; border: 1 solid #000; padding: 3px">
        <?php
        if (!isset($_SESSION[$SESAMD]) || $_SESSION[$SESAMD] == "XFK0WK2A") {
            if (!isset($Ck_Card[1]['car_ID'])) {
                mn_field('button', 'ED', 'Print_Card', 'Emitir Cart&atilde;o', '', '', '', '" style="width:150;" onclick="
							  	document.ClientProperties.action=\'Modules/MF93FL27/lib/pr_makecard.mex\';
								subform(\'ClientProperties\',\'Card_Status\');');
            } elseif ($Ck_Card[1]['car_Delivered'] == 1) {
                echo 'Entregue';
            } elseif (isset($Ck_Card[1]['car_ID']) && $Ck_Card[1]['car_Status'] == 2 && $Ck_Card[1]['car_Delivered'] == 0 && $Ck_Card[1]['cpr_POrigen'] == $_SESSION[$SESSCD]) {
                mn_field('button', 'ED', 'Print_Card', 'Imprimir Cart&atilde;o', '', '', '', '" style="width:150;" onclick="
							  	document.ClientProperties.action=\'Modules/MF93FL27/lib/pr_printcard.mex\';
								subform(\'ClientProperties\',\'Card_Status\');');
            } elseif (isset($Ck_Card[1]['car_ID']) && $Ck_Card[1]['car_Status'] == 3) {
                if ($_SESSION[$SESSCD] == '822') {
                    $id08version = '&bypassType=1';
                } else {
                    $id08version = '';
                }
                echo '<div class="Confirm"><a href="javascript:newprint(\'Aplications/Export_Print.mex?MOD=MF93FL27&OB=' . $Ck_Card[1]['car_ID'] . '&ID=08' . $id08version . '\',\'Printer\');">Imprimir carta</a></div>';
            } else {
                echo 'Aguarda Impressao';
            }
        } else {
            echo 'Servico sem bonus';
        }
        ?></div>
    <div style="margin: 2px; float: right; border: 1 solid #000; padding: 3px">Saldo: <?php echo $Ck_Card[1]['bac_Balance']; ?></div>
</div>